<template>
  <div id="login1">
    <img src="../../image/bg_login@2x.png" alt="">
    <div style="position: absolute;left: 50%;height: 100%;
    transform: translateX(-50%);display: flex;flex-direction: column">
      <header>登录</header>
      <div class="btnBox">
        <div>
          <router-link to='/login2'>手机号登录</router-link>
          <router-link to='/registor'>注册</router-link to='/registor'>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        userid: ''
      }
    },
    components: {

    },
    methods: {
      goBack() {
        this.$router.push({
          path: '/home'
        })
      },

    },
    created() {
      this.userid = localStorage.getItem("loginMobile");
      if (this.userid) {
        this.$router.push({
          path: '/my'
        })
      }
    }
  }

</script>
<style lang="scss">
</style>
